{% extends "index_base.html" %}
{% load pagination_tags %}


{% block content %}


<div class="row">
	{% if topiclist %}
		{% autopaginate topiclist 30 %}
		{% for topicdata in topiclist %}	
		<div class="span10">
			<div class="span1">
				<img src="http://bbs.eve-china.com/uc_server/data/avatar/000/16/46/37_avatar_small.jpg" />
			</div>
			
			<div class="span5">
			
				<table class="">
					<tr>
						<td><a href="/bbs/topic/{{ topicdata.id }}/" target="_blank" style="font-size:18px">{{ topicdata.subject }}({{ topicdata.replies }}/{{ topicdata.views }})</a></td>
					</tr>
					<tr>
						<td>
							<a>{{ topicdata.author_name }}</a>
						</td>
					</tr>
					<tr>
						<td>
							<span title="发布时间">{{ topicdata.createtime }}</span>
						</td>
					</tr>
				</table>
			</div>	
			
			<div class="span2">
				<table>
					<tr>
						<td><span>最后回复:</span></td>
						<td>{{ topicdata.lastposter }}</td>
					</tr>
					<tr>
						<td><span>回复时间:</span></td>
						<td>{{ topicdata.updatetime }}</td>
					</tr>
				</table>
			</div>
			
			<div class="span10" style="padding:5px;">
				<img src="{{ STATIC_URL }}hot_2.gif"/>
				<img src="{{ STATIC_URL }}digest_1.gif"/>
				<img src="{{ STATIC_URL }}hot_2.gif"/>
			</div>
			<hr  class="span10" style="margin-top:5px;"/>
		</div>	
		{% endfor %}
		
		<div class="span10">
			<div class="span9">
				{% paginate %} 
			</div>
		</div>
	{% endif %}
	

	<div class="span10">
		<hr class="span9"/>
		{% include 'bbs/quick_new_post.html' %}
	</div>
</div>
{% endblock %}